Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods to create Drupal files. #3

Merged
merged 3 commits into from
Dec 14, 2015
Merged

Add methods to create Drupal files. #3

merged 3 commits into from
Dec 14, 2015

Conversation

becw
Copy link
Member

@becw becw commented Nov 25, 2015

Adds three new statements:

  • Given the file :filename
  • Given files:

Add the new Palantirnet\PalantirBehatExtension\Context\DrupalFileContext class to your behat.yml to use these, and then you can do a scenario like:

Scenario: Add a file.
  Given the file "foo.txt"
  And files:
    | filename | author   |
    | bar.png  | admin    |
    | test.pdf | somebody |

This is most useful when combined with the file field handler work I have here: https://github.com/becw/DrupalDriver/tree/file-field-handler (specifically, Driver/Fields/Drupal7/FileHandler.php)

becw added a commit that referenced this pull request Dec 14, 2015
Add methods to create Drupal files.
@becw becw merged commit f7cb2dd into master Dec 14, 2015
@becw becw deleted the file-context branch December 14, 2015 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant